//
//  CyclingRouteDetailModel.h
//  Cycling
//
//  Created by CSS on 4/14/23.
//

#import <Foundation/Foundation.h>

@interface CyclingRouteHighlyModel : NSObject
@property (nonatomic , strong) NSArray <NSNumber *>              * x;
@property (nonatomic , strong) NSArray <NSNumber *>              * data;
@property (nonatomic , copy) NSString              * climb;

@end


@interface CyclingRouteSpeedModel :NSObject
@property (nonatomic , strong) NSArray <NSNumber *>              * x;
@property (nonatomic , strong) NSArray <NSNumber *>              * data;
@property (nonatomic , copy) NSString              * unit;

@end


@interface CyclingRouteHeartModel :NSObject
@property (nonatomic , strong) NSArray <NSString *>              * x;
@property (nonatomic , strong) NSArray <NSNumber *>              * data;
@property (nonatomic , copy) NSString              * unit;

- (void)fixHeartData;

@end


@interface CyclingRouteOverallModel :NSObject
@property (nonatomic , copy) NSString              * uniform;//均速
@property (nonatomic , copy) NSString              * climb;//爬升
@property (nonatomic , copy) NSString              * mileage;//里程
@property (nonatomic , copy) NSString              * calories;//卡路里
@property (nonatomic , copy) NSString              * number;//轨迹编号
@property (nonatomic , copy) NSString              * average;//均速运动
@property (nonatomic , copy) NSString              * entire;//全程均速
@property (nonatomic , copy) NSString              * fastest;//最快速度
@property (nonatomic , copy) NSString              * cumulativeRise;//累计上升
@property (nonatomic , copy) NSString              * cumulativeLow;//累计下降
@property (nonatomic , copy) NSString              * totalcalories;//卡路里

@end

@interface CyclingRouteBicycleTypeModel: NSObject

@property (nonatomic, copy) NSArray<NSDictionary *> *data;
@property (nonatomic, copy) NSString *txt;

@end

@interface CyclingRouteGroundTypeModel : NSObject

@property (nonatomic, copy) NSArray<NSDictionary *> *data;
@property (nonatomic, copy) NSString *txt;

@end


@interface CyclingRouteDetailModel : NSObject

@property (nonatomic) double    start;
@property (nonatomic) double    end;
@property (nonatomic , assign) NSInteger              routeId;
@property (nonatomic , assign) NSInteger              equipmentid;

@property (nonatomic , copy) NSString              * end_post;//终点
@property (nonatomic , copy) NSString              * end_lng;
@property (nonatomic , copy) NSString              * end_lat;
@property (nonatomic , copy) NSString              * distance;//起止点距离
@property (nonatomic , copy) NSString              * actualdistance;//实际骑行距离
@property (nonatomic , assign) NSInteger              estimatedDuration;//预估骑行时长
@property (nonatomic , assign) NSInteger              actualDuration;//实际骑行时长
@property (nonatomic , copy) NSString              * json;
@property (nonatomic , assign) NSInteger              climb;//累计高度
@property (nonatomic , copy) NSString              * calories;//卡路里

@property (nonatomic , copy) NSString              * createtime;

@property (nonatomic , copy) NSString              * lineimg;


@property (nonatomic , copy) NSString              * mileage;

@property (nonatomic , copy) NSString              * num;//次数
@property (nonatomic , strong) CyclingRouteHighlyModel              * highly;
@property (nonatomic , strong) CyclingRouteSpeedModel              * speed;
@property (nonatomic , strong) CyclingRouteHeartModel              * heart;
@property (nonatomic , strong) CyclingRouteOverallModel              * overall;
@property (nonatomic, strong) CyclingRouteBicycleTypeModel *bicycleType;
@property (nonatomic, strong) CyclingRouteGroundTypeModel *ground;

@property (nonatomic , copy) NSString              * startdate;
@property (nonatomic , assign) NSInteger              state;
@property (nonatomic , copy) NSString              * stend;//时间范围
@property (nonatomic , copy) NSString              * timelength;//时长
@property (nonatomic , copy) NSString              * updatetime;
@property (nonatomic , copy) NSString               *user_alt;
@property (nonatomic , copy) NSString              * user_lat;
@property (nonatomic , copy) NSString              * user_lng;
@property (nonatomic , copy) NSString              * user_post;//起点
@property (nonatomic , assign) NSInteger              userid;
@property (nonatomic, copy) NSString *endtime;


@end
